count = 0
for i in range(1, 8):
    for j in range(i + 1, 8):
        print("(%d,%d)" % (i, j))
        count += 1
print("一共", count, "种")
